<template>
  <div class="myspace">
    <div id="header" class="box">
      <div class="logo">
        <img src="../assets/logo/logo.jpeg" alt="" />
        <span> 个人中心 </span>
      </div>
      <div class="box-left">
        <ul>
          <li class="item">
            <router-link to="/myspace/myindex" class="login-item">
              我的首页
            </router-link>
          </li>
          <li class="item">
            <router-link to="/myspace/mynews" class="login-item">
              我的消息
            </router-link>
          </li>
          <li class="item">
            <router-link to="/myspace/myupload" class="login-item">
              我的发布
            </router-link>
          </li>
          <li class="item">
            <router-link to="/myspace/mysetting" class="login-item">
              我的设置
            </router-link>
          </li>
        </ul>
      </div>
      <div class="box-right">
        <div class="login">
          <span class="item">
            <router-link to="/" class="login-item">从心首页</router-link>
          </span>
          <span class="item">
            <router-link to="#" class="login-item">刘小怂</router-link>
          </span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
  user-select: none;
}

*a {
  text-decoration: none;
}

*li {
  list-style: none;
}

.myspace {
  display: flex;
  flex-direction: column;

  #header {
    width: 1200px;
    margin: 0 auto;
    height: 65px;
    background-color: #666;
    display: flex;
    justify-content: space-around;
    align-items: center;
    .logo {
      width: 200px;
      display: flex;
      justify-content: center;
      align-items: center;
      img {
        height: 45px;
        margin: 0 auto;
        border-radius: 10px;
      }
      span {
        line-height: 65px;
        margin: 0 auto;
        font-size: 1.8rem;
        // font-weight: 500%;
        color: #fff;
      }
    }
    .item:hover {
      border-top: 2px solid red;
      background: #333;
    }
    .box-left {
      // width: 600px;
      ul {
        display: flex;

        li {
          width: 150px;
          height: 65px;
          line-height: 65px;
          text-align: center;
          margin: 0 auto;

          a {
            color: aliceblue;
            font-size: 1.3rem;
          }
        }
      }
    }
    .box-right {
      // width: 150px;
      // height: 65px;
      display: flex;
      justify-content: center;
      align-items: center;
      // border: 1px solid black;
    }

    .login {
      width: 150px;
      height: 65px;
      display: flex;
      justify-content: space-around;
      align-items: center;
      // border: 1px solid black;

      > span {
        border-radius: 5px;
        padding: 5px 10px;
        background-color: #46aaff;
        display: flex;
        .login-item {
          font-size: 0.6rem;
          height: 30px;
          line-height: 30px;
          color: white;
          text-align: center;
        }
      }
    }
  }
}
</style>
